<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
             // 对象数组取某个对象元素相同的交集
      let arr3 = [{a:'1',b:'12'}, {a:'0', b:'12'}]
      let arr4 = [{a:'2',b:'23'}, {a:'0', b:'12'}]
      let arr5 = arr3.map(item=>item.a)
      console.log(arr5)
      let newArr2 = arr4.filter(info=>{
        return new Set(arr5).has(info.a)
      })
      console.log(newArr2) // [{a:'0', b:'12'}]
    </script>
    
</body>
</html>